#include "MainFrame.h"

MainFrame::MainFrame() :
  wxFrame(nullptr,wxID_ANY,wxT("StrmBMP解压缩程序"))
{
  noteBook=new wxNotebook(this,(int)MainFrameID::noteBook);
  compFrame=new CompressFrame(noteBook);
  decompFrame=new DecompFrame(noteBook);

  noteBook->InsertPage(0,compFrame,wxT("压缩文件"));
  noteBook->InsertPage(1,decompFrame,wxT("解压文件"));

  wxBoxSizer* mainSizer=new wxBoxSizer(wxVERTICAL);
  mainSizer->Add(noteBook,wxSizerFlags(1).Expand());

  SetMinSize(wxSize(300,600));
  SetSizer(mainSizer);
}
